package com.zsrt.java.day20161230.lh.day.ex.demo01;

public class Manager extends Person {

	private String job;
	private String yearsalary;

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getYearsalary() {
		return yearsalary;
	}

	public void setYearsalary(String yearsalary) {
		this.yearsalary = yearsalary;
	}

	public Manager(String name, char sex) {
		super(name, sex);
		System.out.println("子类的有参构造方法");
	}

	public Manager(String name, char sex, String job) {
		super(name, sex);
		this.job = job;
		System.out.println("子类的有参构造方法");
	}
	
	public Manager(){
		
		System.out.println("子类的无参构造方法");
	}
	
	
	
	public void getInfo() {
		System.out.println(this.getName()+"  "+this.getSex()+" "+this.getJob()+"  "+this.getYearsalary());
	}

	
	


	
}
